<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/easyui.jsp"%>

</head>
<body>
<div>
	<form id="mainform" action="${ctx}/user/${action}?id=${customerInfo.id}" method="post">
	<table  class="formTable" align="center">
		<tr>
		<td >是否显示我的营销模版：</td>
			<td>
					<input type="radio" id="able" name="marketShow" value="1" ${customerInfo.marketShow=='1'?'checked':''}/><label for="able">是</label>
					<input type="radio" id="disable" name="marketShow" value="0" ${customerInfo.marketShow=='1'?'':'checked'}/><label for="disable">否</label>
			</td>
		</tr>
		<tr>
		<td>是否显示LBS：</td>
			<td  width="40%" align="center">
				<input type="radio" id="able" name="lbsShow" value="1" ${customerInfo.lbsShow=='1'?'checked':''}/><label for="able">是</label>
				<input type="radio" id="disable" name="lbsShow" value="0" ${customerInfo.lbsShow=='1'?'':'checked'}/><label for="disable">否</label>
			</td>
		</tr>
	</table>
	</form>
</div>

<script type="text/javascript">
$(function(){
	
	//上级菜单
	$('#pid').combotree({
		width:180,
		method:'GET',
	    url: '${ctx}/user/json',
	    idField : 'id',
	    textFiled : 'name',
		parentField : 'pid',
	    animate:true
	});  
	
	$('#mainform').form({    
	    onSubmit: function(){    
	    	var isValid = $(this).form('validate');
			return isValid;	// 返回false终止表单提交
	    },    
	    success:function(data){   
	    	if(successTip(data,dg,d))
	    		dg.treegrid('reload');
	    }    
	}); 
});

</script>

</body>
</html>